<!--
  @author liuyong
  @since 2021-05-11 10:47:56
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <th lay-data="{type:'checkbox', width:60, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{field:'robotId', width:60,  unresize:true, sort:true, align:'center'}">ID</th>
        <th lay-data="{field:'groupName', minWidth:200,unresize:true,align:'left'}">钉钉群名称</th>
        <th lay-data="{field:'updater' , width:150,unresize:true,align:'left'}">最近修改人</th>
        <th lay-data="{field:'updateTime', width:150, unresize:true, align:'center'}">最近修改时间</th>
        <th lay-data="{field:'操作',width:150, unresize:true, align:'center', fixed:'right'}">操作</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td th:text="${item.robotId}">robotId</td>
        <td th:text="${item.groupName}">groupName</td>
        <td th:text="${(item.updater==null?'':item.updater)}">
            updater
        </td>
        <td th:text="${(item.updateTime==null?'':#dates.format(item.updateTime, 'yyyy-MM-dd HH:mm:ss'))}">
            updateTime
        </td>
        <td>
            <div>
                <zmn th:if="${#authPermit.checkPermit('/ding/group/robot/detail.action')}">
                    <a th:onclick="detail([[${item.robotId}]])" th:lay-text="修改"
                       class="layui-btn layui-btn-sm">修改</a>
                </zmn>
                <!-- <zmn th:if="${#authPermit.checkPermit('/eng/detect/tool/delete.action')}">
                     <a th:onclick="deleteItem([[${item.robotId}]])"
                        class="layui-btn layui-btn-sm layui-btn-danger">删除</a>
                 </zmn>-->
            </div>
        </td>
    </tr>
    </tbody>
</table>

